﻿@model  INSE6260.OnlineBanking.Model.Clients.Client
@{
    ViewBag.Title = "Profile & Preferences";
}

@using (Html.BeginForm("UpdateProfile", "Profile", FormMethod.Post))
{
   <fieldset>
            <legend>Profile</legend>

            @Html.HiddenFor(model => model.Id)
            @Html.HiddenFor(model => model.OccupationTypeId)
            @Html.HiddenFor(model => model.EmploymentTypeId)
            @Html.HiddenFor(model => model.FirstName)
            @Html.HiddenFor(model => model.LastName)
            @Html.HiddenFor(model => model.Gender)

            <div class="editor-label">
                @Html.DisplayFor(modelItem => modelItem.FirstName), @Html.DisplayFor(modelItem => modelItem.LastName)
            </div>
            
            <div class="editor-label">
                @Html.LabelFor(model => model.Address)
            </div>
            <div class="editor-field">
                @Html.TextAreaFor(model => model.Address, new { Rows = 3 })
                @Html.ValidationMessageFor(model => model.Address)
            </div>

            <div class="editor-label">
                @Html.LabelFor(model => model.Telephone)
            </div>
            <div class="editor-field">
                @Html.EditorFor(model => model.Telephone)
                @Html.ValidationMessageFor(model => model.Telephone)
            </div>

            <div class="editor-label">
                @Html.LabelFor(model => model.Email)
            </div>
            <div class="editor-field">
                @Html.EditorFor(model => model.Email, new { width = 220 })
                @Html.ValidationMessageFor(model => model.Email)
            </div>
            <p>
                <input type="submit" value="Save" />
                 @Html.ActionLink("Cancel", "Index", "Home",null, new { @class = "khbtn" })
            </p>
             <div style="color: green">
            @if (!String.IsNullOrEmpty(@ViewBag.Message))
            {
                @ViewBag.Message
            }
        </div>
            <div>@Html.ActionLink("Change Password", "ChangePassword", "Profile")</div>
            <p></p>
            <div>@Html.ActionLink("Change Security Questions", "ChangeSecurityQuestion", "Profile")</div>
                        
     </fieldset> 
}